package com.business.exam.domain;

import com.business.common.annotation.Excel;
import com.business.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 知识点标签对象 exam_qb_knownledge_label
 *
 * @author zhanglele
 * @date 2023-11-17
 */
public class ExamQbKnownledgeLabel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类id */
    private Long labelId;

    /** 父分类id */
    @Excel(name = "父分类id")
    private Long parentId;

    /** 标签编码 */
    @Excel(name = "标签编码")
    private String labelCode;

    /** 标签名称 */
    @Excel(name = "标签名称")
    private String labelName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 子分类 */
    private List<ExamQbKnownledgeLabel> children = new ArrayList<ExamQbKnownledgeLabel>();


    public void setLabelId(Long labelId)
    {
        this.labelId = labelId;
    }

    public Long getLabelId()
    {
        return labelId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setLabelCode(String labelCode)
    {
        this.labelCode = labelCode;
    }

    public String getLabelCode()
    {
        return labelCode;
    }
    public void setLabelName(String labelName)
    {
        this.labelName = labelName;
    }

    public String getLabelName()
    {
        return labelName;
    }
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum()
    {
        return orderNum;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("labelId", getLabelId())
            .append("parentId", getParentId())
            .append("labelCode", getLabelCode())
            .append("labelName", getLabelName())
            .append("orderNum", getOrderNum())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public List<ExamQbKnownledgeLabel> getChildren() {
        return children;
    }

    public void setChildren(List<ExamQbKnownledgeLabel> children) {
        this.children = children;
    }
}
